import axios from '@/api/http'
import filehttp from '@/api/file-http'

/**
 * 上传表格文件 沿用之前
 */
export const gisUploadTableFile = (options?: any) =>
  filehttp.request({
    ...options,
    url: '/dataset/uploadFiles',
  })

/**
 * 上传 shapefile 文件
 */
export const gisUploadShapeFiles = (options?: any) =>
  filehttp.request({
    ...options,
    url: '/gis/uploadShapeFiles',
  })

/**
 * gis shapefile  确认导入数据
 */
export const gisImportData = (options?: any) =>
  axios.request({
    ...options,
    url: '/gis/importData',
  })

/**
 * 脱敏后预览数据
 */
export const generateMask = (options?: any) =>
  axios.request({
    ...options,
    url: '/dataset/generateMask',
  })

export default {}
